/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
.app-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    padding: 20px; /* 添加安全边距 */
    box-sizing: border-box;
  }
.container {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 950px;
    height: auto; 
    max-height: 90vh;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    margin: 0 auto;
}

.container:hover {
    transform: scale(1.02);
}

.image-section {
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease-in-out;
}
#login-form ~ .image-section {
    background-image: url('../images/fas1.png');
}

#register-form ~ .image-section {
    background-image: url('../images/fas1.png');
}

.form-section {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-left: 1px solid #ddd;
    position: relative;
}

.form-section::-webkit-scrollbar {
    display: none;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.btn:hover {
    background-color: #0056b3;
}

.other-login {
    margin-top: 20px;
    text-align: center;
}

.other-login p {
    margin-bottom: 12px;
    color: #666;
}

.other-login button {
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.other-login button:hover {
    background-color: #f0f0f0;
}

.agreement {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.agreement a {
    color: #007bff;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

.switch-form {
    text-align: center;
    margin-top: 20px;
}

.switch-form a {
    color: #007bff;
    text-decoration: none;
}

.switch-form a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.input {
    width: 90%;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn {
    transition: transform 0.3s ease-in-out;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(1px);
}

.image-section {
        width: 350px;
        background: linear-gradient(to bottom right, #4facfe, #00f2fe);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        color: white;
}

#send-code{
    width: 30%;
    margin-top: 10px;
    margin-left: 330px;
}

.warning-text {
    display: none;
    color: black;
    font-size: 14px;
    margin-left: 10px;
    transition: opacity 0.3s ease-in-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

#send-forgot-code{
    margin-top: 10px;
    width: 30%;
}

#reset-code{
    width:30%
}

#password-warning {
    display: none;
    color: #d9534f;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: shake 0.5s ease-in-out;
}

.image-section1 {
    flex: 1;
    background-image: url('../images/fas1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.image-section1 a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease-in-out;
}

.image-section1 a:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.gender-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.gender-container label[for="register-gender"] {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    margin-right: 10px;
}

.gender-options {
    display: flex;
    gap: 20px;
}

.gender-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.gender-option input[type="radio"] {
    margin: 0;
    margin-right: 8px;
    cursor: pointer;
}

.gender-option span {
    font-size: 16px;
    color: #555;
    transition: color 0.3s ease-in-out;
}

.gender-option input[type="radio"]:checked + span {
    color: #007bff;
    font-weight: 500;
}

.gender-option:hover span {
    color: #007bff;
}